------------ DATECALC.TXT Date Calculator, version 2.1 ------------ Distributed as Freeware from Spyder Software, August 1994. Date Calculator accepts the user's input of a date in the format of mm/dd/yyyy where: mm is a two-digit value for a month, dd is a two-digit value for a day, and yyyy is a four-digit value for a year. The program displays the day of the week for the inputted date and then calculates whether the year of the date inputted is a leap year. Next, the program allows the user to select among the following options: 1. Age in Years 2. Difference in Days 3. Future or Past Date 4. Julian Number Age in Years: This function uses the inputted date and calculates the age in whole years between the inputted date and the current date. Difference in Days: This function asks the user to input a second date and calculates the number of days between the first inputted date and the second inputted date. Future or Past Date: This function asks the user to input a number representing a number of days in the future (or past) from the inputted date. The resulting date is displayed in the output text box. (Just use a minus sign in front of the inputted number to calculate past dates.) Valid date outputs range from 12/31/0099 to 12/31/9999. Julian Number: The Julian number is a sequential number for a day within a given year. This function tallies the number of cumulative days within the year, starting with January 1. Thus, January 1 is Julian number 1, February 1 is Julian number 32, December 31 is Julian number 365 in non-leap years, and December 31 is Julian number 366 in leap years, etc. You will need the following four files to run Julian Date Calculator: DATECALC.EXE (the executable program file) MSMASKED.VBX (custom control for masked date input) MSAFINX.DLL (Dynamic Link Library for DateDiff and DateAdd functions) VBRUN300.DLL (Visual Basic 3.0 run-time DLL; sorry, this file is not included in the distribution ZIP file) You may put the DATECALC.EXE file anywhere on your system; however, MSMASKED.VBX and MSAFINX.DLL need to be in your \WINDOWS\SYSTEM directory. The VBRUN300.DLL file is required to run programs (such as this one) that have been created with Microsoft's Visual Basic, version 3.0. The VBRUN300.DLL file is rather large (389k) and thus is not included in the distribution ZIP file. VBRUN300.DLL may be downloaded from CompuServe, America Online, and many local bbs's. VBRUN300.DLL should also be in your \WINDOWS\SYSTEM directory. Revision History: Version 1.0: The first version of this program was JULIAN.EXE, which featured only the Julian Number and Age in Years functions. Version 2.0: Revised user interface. Added the label box that displays the day of the week. Added the Difference in Days and Future or Past Date functions. Version 2.1: No functionality nor user interface changes. I simply remembered to include the MSAFINX.DLL file in the distribution ZIP file. (This DLL is required for the operation of the Difference in Days and Future or Past Date functions.) Please accept my humble apology for those who attempted to use version 2.0 without the DLL and found that these functions did not work. If you like Date Calculator, please send a message to me ("Spyder") at CompuServe id # 74511,2226. (Please be nice; this is my first attempt at Visual Basic Programming :)